package edu.scau.divineplace.entity.query.content;

import edu.scau.divineplace.entity.enums.RoleTypeEnum;
import edu.scau.divineplace.entity.validate.group.Upload;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Author: x1aolone
 * @Date: 2021/1/3 15:16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel("RoleQuery")
public class RoleManageQuery {

    @ApiModelProperty(value = "内容与角色的关系id")
    private Long relationId;

    @ApiModelProperty(value = "角色/创作者id")
    @NotNull(groups = {Upload.class})
    private Long roleId;

    @ApiModelProperty(value = "人物类型详情，如出版社、作画、主角、配角等")
    @NotBlank(groups = {Upload.class})
    private String roleTypeDetail;

    @ApiModelProperty(value = "角色对应的CV的Id, 角色可以没有也可以有多个CV, 制作者没有CV")
    private List<RoleManageQuery> cvs;

}
